package mode.decorator.decorator;

/**
 * 鸡蛋配料
 *
 * @author xjx
 * @date 2023/7/21 16:12
 */
public class Egg extends Ingredients {
    public Egg(FriedRice friedRice) {
        super(friedRice);
    }

    @Override
    String getDesc() {
        return super.getDesc() + "+鸡蛋";
    }

    @Override
    Integer getPrice() {
        return super.getPrice() + 2;
    }
}
